package com.webservice.xmloper.managercode;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

import com.thoughtworks.xstream.XStream;

public class ManagerCodeSearchOper {
	
	/**
	 * 解析  管理指令查询指令结果xml文件,参数为字符串
	 */
	public static CommandQueryResult parseCommandQueryResultXml(String commandQueryResult){
		XStream xs = new XStream();
		xs.processAnnotations(CommandQueryResult.class);
		InputStream myIn=new ByteArrayInputStream(commandQueryResult.getBytes());
		return (CommandQueryResult) xs.fromXML(myIn);
	}
}
